import { createContext, useContext } from "@/hooks/core/useContext";

const key = Symbol("App");

/** 创建依赖注入 */
export function createAppProviderContext(context) {
  return createContext(context, key);
}

/** 引用依赖注入 */
export function useAppProviderContext() {
  return useContext(key);
}
